package com.cjfan.trendplus.noteit.study;

import com.cjfan.trendplus.noteit.NoteIT;
import com.cjfan.trendplus.noteit.R;
import com.cjfan.trendplus.noteit.add.AddNewItemActivity;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class StudyActivity extends Activity {
	Button homeBtn;
	Button backBtn;
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_study);
        homeBtn = (Button)findViewById(R.id.homeBtn);
        backBtn = (Button)findViewById(R.id.backBtn);
        homeBtn.setOnClickListener(btnTrigger);
        backBtn.setOnClickListener(btnTrigger);
    }
	private OnClickListener btnTrigger=new OnClickListener(){
		@Override
		public void onClick(View v) {
			switch(v.getId()){
				case R.id.homeBtn:
					Intent intentHome = new Intent();
					intentHome.setClass(StudyActivity.this, NoteIT.class);
			    	startActivity(intentHome);
			    	StudyActivity.this.finish();
				  	break;
				case R.id.backBtn:
					Intent intentBack = new Intent();
					intentBack.setClass(StudyActivity.this, NoteIT.class);
			    	startActivity(intentBack);
			    	StudyActivity.this.finish();
					break;
					
				default:
			}
		}
    };
	

}
